package com.example.ccj.u.server;


import com.example.ccj.u.LogUtils;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

public abstract class MyObserver<T> implements Observer<T> {

    @Override
    public abstract void onNext(T t);

    @Override
    public void onSubscribe(Disposable d) {}

    @Override
    public void onError(Throwable e) {
//        ToastUtils.showLong(e.getMessage());
        LogUtils.e(e);
    }

    @Override
    public void onComplete() {}
}
